*****R&P Experiment I Do File 
*****Created 7/26/19


*********experimental groups
*experiment 1=control
*experiment 2=rebel elections
*experiment 3=stonethrowing
*experiment 4=terrorism
*experiment 5=demonstration
*experiment 6=interventions
*experiment 7=social noncooperation

***Pariticipants per group
tab experiment

*********Ologit/Logit Regressions  

**overall opinion of DPR, all positive except terrorism,
ologit group_opinion i.experiment
 
**Zakharachenko opinion
ologit leader_opinion i.experiment 

*********Ologit/Logit Regressions with controls (in Appendix)

**overall opinion of DPR, all positive except terrorism,
ologit group_opinion i.experiment ideology gender age edu income

**Zakharachenko opinion
ologit leader_opinion i.experiment ideology gender age edu income



*********Predicted Probabilities for DPR Opinion and Leader Opinion
quietly ologit group_opinion i.experiment ideology gen age edu income
margins i.experiment, at (gen=2) atmeans post 

quietly ologit leader_opinion i.experiment ideology gen age edu income
margins i.experiment, at (gen=2) atmeans post 


***for figure 1
ologit group_opinion i.experiment ideology gen age edu income
margins, dydx(experiment)
*see saved estimates in Figure 1.dta

ologit leader_opinion i.experiment ideology gen age edu income
margins, dydx(experiment)
*see saved estimates in Figure 2.dta


***summary stats for demographics
tabulate age 
tabulate gen
tabulate ideology 
tabulate edu 
tabulate income


***summary stats for demographics by treatment group
tabulate age if experiment ==1
tabulate age if experiment ==2
tabulate age if experiment ==3
tabulate age if experiment ==4
tabulate age if experiment ==5
tabulate age if experiment ==6
tabulate age if experiment ==7

tabulate gen if experiment ==1
tabulate gen if experiment ==2
tabulate gen if experiment ==3
tabulate gen if experiment ==4
tabulate gen if experiment ==5
tabulate gen if experiment ==6
tabulate gen if experiment ==7

tabulate ideology if experiment ==1
tabulate ideology if experiment ==2
tabulate ideology if experiment ==3
tabulate ideology if experiment ==4
tabulate ideology if experiment ==5
tabulate ideology if experiment ==6
tabulate ideology if experiment ==7
 
tabulate edu if experiment ==1
tabulate edu if experiment ==2
tabulate edu if experiment ==3
tabulate edu if experiment ==4
tabulate edu if experiment ==5
tabulate edu if experiment ==6
tabulate edu if experiment ==7

tabulate income if experiment ==1
tabulate income if experiment ==2
tabulate income if experiment ==3
tabulate income if experiment ==4
tabulate income if experiment ==5
tabulate income if experiment ==6
tabulate income if experiment ==7


***chi-squared for demographic variables
*age:
tabulate age experiment, chi2

*gender:
tabulate gen experiment, chi2

*ideology:
tabulate ideology experiment, chi2

*eduation:
tabulate edu experiment, chi2

*income:
tabulate income experiment, chi2


*********Additional Ologit/Logit Regressions  
**overall opinion of Ukraine
ologit state_opinion i.experiment 

**new DPR elections
ologit elections i.experiment 

**intiving Zakharcheno to peace talks 
logit peace_talks i.experiment 

**Zakhar formal appeal to UN
logit un_appeal i.experiment 

**DPR as independent country
logit ind_state i.experiment 

**econ sanctions on Russia
ologit sanctions i.experiment 

**provide econ assistance to Ukraine
ologit econ_assist i.experiment 

**send weaspons 
ologit weapons i.experiment 

**U.S. mil action
ologit mil_action i.experiment 

**US ground troops
ologit troops i.experiment

**no US action
ologit US_act i.experiment 



